﻿<%@ Page Title="" Language="C#" MasterPageFile="~/manage.master" AutoEventWireup="true" CodeFile="BBSmanage.aspx.cs" Inherits="Admins_FAQmanage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolderBody" Runat="Server">
 
    <asp:GridView ID="GridView" AutoGenerateColumns="false" AllowPaging="True" runat="server"
                        Font-Size="12px" Width="900px" OnSelectedIndexChanged="GridView1_SelectedIndexChanged1"
                       
        OnRowUpdating="GridView1_RowUpdating" OnRowCancelingEdit="GridView1_RowCancelingEdit"
                        OnSelectedIndexChanging="GridView1_SelectedIndexChanging" 
                        style="margin-top: 0px" onrowediting="GridView_RowEditing">
                        <FooterStyle BackColor="#F7DFB5" ForeColor="#8C4510" />
                        <RowStyle BackColor="#FFF7E7" ForeColor="#8C4510" />
                        <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="White" />
                        <PagerStyle ForeColor="#8C4510" HorizontalAlign="Center" />
                        <HeaderStyle BackColor="#A55129" Font-Bold="True" ForeColor="White" />
                        <Columns>
                            <asp:BoundField DataField="bbsId" HeaderText="公告序号" ReadOnly="True">
                                <HeaderStyle Width="40px" />
                                <ItemStyle Width="40px" />
                                <ControlStyle Width="40px" />
                            </asp:BoundField>

                            <asp:BoundField DataField="title" HeaderText="公告标题" ReadOnly="True">
                                <HeaderStyle Width="200px" />
                                <ItemStyle Width="200px" />
                                <ControlStyle Width="200px" />
                            </asp:BoundField>

                              <asp:BoundField DataField="content" HeaderText="公告内容" ReadOnly="True">
                                <HeaderStyle Width="300px" />
                                <ItemStyle Width="300px" />
                                <ControlStyle Width="300px" />
                            </asp:BoundField>

                            <asp:TemplateField HeaderText="填写公告内容">
                                <ItemTemplate>
                                    <asp:TextBox ID="TextBox1" runat="server">
                                    </asp:TextBox>
                                </ItemTemplate>
                            </asp:TemplateField>

                            <asp:TemplateField HeaderText="选择">
                                <ItemTemplate>
                                    <asp:CheckBox ID="CheckBox1" runat="server" />
                                </ItemTemplate>
                            </asp:TemplateField>

                               <asp:BoundField DataField="INTime" HeaderText="公告时间" ReadOnly="true">
                                <HeaderStyle Width="80px" />
                                <ItemStyle Width="80px" />
                                <ControlStyle Width="80px" />
                            </asp:BoundField>
                           
                            <asp:CommandField HeaderText="编辑" ShowEditButton="True" />
                        </Columns>
                    </asp:GridView>
    <br />
    <asp:LinkButton ID="LinkButton1" runat="server" OnClick="LinkButton1_Click">显示全部公告</asp:LinkButton>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    <asp:LinkButton ID="LinkButton2" runat="server" OnClick="LinkButton2_Click">删除</asp:LinkButton>
</asp:Content>

